package com.care.inquiry.common.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.care.common.core.annotation.Excel;
import com.care.common.core.web.domain.BaseEntity;

/**
 * 聊天记录对象 t_chat
 *
 * @author care
 * @date 2024-03-26
 */
public class Chat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 聊天id */
    private Integer chatId;

    /** 发送人id */
    @Excel(name = "发送人id")
    private Integer sendId;

    /** 接收人id */
    @Excel(name = "接收人id")
    private Integer putId;

    /** 信息内容 */
    @Excel(name = "信息内容")
    private String content;

    /** 接诊id */
    @Excel(name = "接诊id")
    private Integer receptionId;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    public void setChatId(Integer chatId)
    {
        this.chatId = chatId;
    }

    public Integer getChatId()
    {
        return chatId;
    }
    public void setSendId(Integer sendId)
    {
        this.sendId = sendId;
    }

    public Integer getSendId()
    {
        return sendId;
    }
    public void setPutId(Integer putId)
    {
        this.putId = putId;
    }

    public Integer getPutId()
    {
        return putId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setReceptionId(Integer receptionId)
    {
        this.receptionId = receptionId;
    }

    public Integer getReceptionId()
    {
        return receptionId;
    }
    public void setSendTime(Date sendTime)
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime()
    {
        return sendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chatId", getChatId())
            .append("sendId", getSendId())
            .append("putId", getPutId())
            .append("content", getContent())
            .append("receptionId", getReceptionId())
            .append("sendTime", getSendTime())
            .toString();
    }
}
